home *** CD-ROM | disk | FTP | other *** search
Text File | 1993-04-24 | 1.3 KB | 47 lines | [TEXT/CCL2] |
-
- (in-package "VOICE-TOOLKIT")
-
- (export '(voice-radio-button initialize-instance))
-
- (defclass voice-radio-button (radio-button-dialog-item)
- ((careful :accessor careful
- :initarg :careful
- :initform t)
- (exclusive :accessor exclusive
- :initarg :exclusive
- :initform t)
- (text-color :accessor text-color)
- (text-font :accessor text-font)))
-
- (defmethod text ((self voice-radio-button))
- (format nil "radio button ~a"
- (dialog-item-text self)))
-
- (defmethod select ((self voice-radio-button))
- (dialog-item-action self)
- (radio-button-push self))
-
- (defmethod mark ((self voice-radio-button))
- (if (numberp *mark-method*)
- (progn
- (setf (text-color self) (part-color self :text))
- (set-part-color self :text *mark-method*))
- (progn
- (setf (text-font self) (view-font self))
- (set-view-font self (list (first (view-font self)) *mark-method*)))))
-
- (defmethod unmark ((self voice-radio-button))
- (if (numberp *mark-method*)
- (set-part-color self :text (text-color self))
- (set-view-font self (text-font self))))
-
- (defmethod initialize-instance ((self voice-radio-button) &rest args)
- (apply #'call-next-method (cons self (make-voice-shell args))))
-
-
- (defmethod identify ((self voice-radio-button))
- (file-voice-item self))
-
-
-
-